﻿<%@ Page Title="Add Edit Item" Language="C#" MasterPageFile="~/POS.master" AutoEventWireup="true" CodeFile="AddEditItems.aspx.cs" Inherits="Items_AddEditItems" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
     <div class="container">
        <div class="form-horizontal" id="divCustomerWrapper">
             <div class="form-group">
                <label class="control-label col-sm-4" for="Person">Category :</label>
                <div class="col-sm-6">
                    <asp:DropDownList ID="DDL_Category" AutoPostBack="true" OnSelectedIndexChanged="DDL_Category_SelectedIndexChanged" DataTextField="CategoryName" DataValueField="CategoryId" CssClass="form-control" runat="server"></asp:DropDownList>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Person">Sub Category :</label>
                <div class="col-sm-6">
                    <asp:DropDownList ID="DDL_SubCategory" DataTextField="SubCategoryName" DataValueField="SubCategoryId" CssClass="form-control" runat="server"></asp:DropDownList>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Person">Manufacturer :</label>
                <div class="col-sm-6">
                    <asp:DropDownList ID="DDL_Manufacturer" DataTextField="ManufacturerName" DataValueField="ManufacturerId" CssClass="form-control" runat="server"></asp:DropDownList>
                </div>
            </div>
             <div class="form-group">
                <label class="control-label col-sm-4" for="Name">Item Code :</label>
                <div class="col-sm-6">
                    <asp:TextBox runat="server" id="txtItemCode" Cssclass="form-control" placeholder="Item Code" />
                    <asp:RequiredFieldValidator ErrorMessage="Enter Item Code" ForeColor="Red" ControlToValidate="txtItemCode" runat="server" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Name">Item Name :</label>
                <div class="col-sm-6">
                    <asp:TextBox runat="server" id="txtItemName" Cssclass="form-control" placeholder="Item Name" />
                    <asp:RequiredFieldValidator ForeColor="Red" ErrorMessage="Enter Item Name" ControlToValidate="txtItemName" runat="server" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Name">BarCode :</label>
                <div class="col-sm-6">
                    <asp:TextBox runat="server" id="txtBarCode" Cssclass="form-control" placeholder="Item bar Code" />
                    <asp:RequiredFieldValidator ErrorMessage="Enter Bar Code" ForeColor="Red" ControlToValidate="txtBarCode" runat="server" />
                </div>
            </div>
            
             <div class="form-group">
                <label class="control-label col-sm-4" for="City">Sale Price :</label>
                <div class="col-sm-6">
                    <asp:TextBox runat="server" TextMode="Number" id="txtSalePrice" class="form-control" placeholder="Sale Price"/>
                    <asp:RequiredFieldValidator ErrorMessage="Enter Sale Price" ForeColor="Red" ControlToValidate="txtSalePrice" runat="server" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="City">Discount :</label>
                <div class="col-sm-6">
                    <asp:TextBox runat="server" TextMode="Number" id="txtDiscount" Text="0" Cssclass="form-control" placeholder="Discount"/>
                    <asp:RequiredFieldValidator ErrorMessage="Enter Discount" ForeColor="Red" ControlToValidate="txtDiscount" runat="server" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Address">Description :</label>
                <div class="col-sm-6">
                    <asp:TextBox runat="server" id="txtDescription" rows="3" class="form-control" placeholder="Description"></asp:TextBox>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-4 col-sm-8">
                    <asp:Button runat="server" id="btnSave" Cssclass="btn btn-success" Text="Save" OnClick="btnSave_Click" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>

